package com.atguigu.classes;

/**
 * @program: IDEAcode
 * @description:
 * @author: Mr.zjx
 * create: 2021-07-24-20-18
 **/
public class Test05 {
    public static void main(String[] args) {
        insertBuilder();
    }
    private static void insertBuilder(){
        StringBuilder builder = new StringBuilder();
        builder.append("Ineedtofindajob");
        builder.insert(5,7);
        System.out.println(builder);

        builder.setCharAt(1,'M');
        System.out.println(builder);

        builder.deleteCharAt(1);
        System.out.println(builder);

        builder.delete(0,1);//包左不包右
        System.out.println(builder);

        builder.reverse();//翻转
        System.out.println(builder);

        System.out.println(System.getProperties());//返回操作系统的相关属性
    }
}
